package org.jeecg.modules.demo.task.wx;

import org.jeecg.modules.demo.crm.mapper.CProjectApplicationMapper;
import org.jeecg.modules.demo.crm.service.ICEmailService;
import org.jeecg.modules.demo.crm.service.ICWxMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 公众号 消息发送
 */
@Component
@ConditionalOnProperty(name = "msg.enable", havingValue = "true")
public class WxTemplateSendScheduledTask {


    @Autowired
    private ICWxMsgService iCWxMsgService;


    @Scheduled(fixedDelay = 60000)
    public void executeTask() {
       iCWxMsgService.send();
    }
}
